package com.gzy.net_app.ui.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.gzy.net_app.databinding.FragmentMeBinding;
import com.gzy.net_app.ui.BaseFragment;
import com.gzy.net_app.ui.activity.FaceDetectionActivity;
import com.gzy.net_app.ui.activity.SettingActivity;

public class MeFragment extends BaseFragment<FragmentMeBinding> {


  @Override public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);

    initData();
  }

  private void initData() {
    binding.layoutSetting.setOnClickListener(view -> {
      startActivity(new Intent(requireActivity(), SettingActivity.class));
    });

    binding.layoutFace.setOnClickListener(view -> startActivity(new Intent(requireActivity(), FaceDetectionActivity.class)));
  }
}